﻿/*
This file is under Microsoft Public License (MS-PL)
Copyright Yohann MARTEL.  All rights reserved.
Codeplex: http://amf.codeplex.com
AMF Website: http://www.ymartel.com/aspnet-mobile-framework/
*/
using System.ComponentModel;

namespace Mobile.WebControls.Field
{
    public class TextAreaField : Field
    {
        #region Properties
        [Category("Functionality")]
        public string FieldName { get; set; }
        [Category("HTML")]
        public string Value { get; set; }
        #endregion

        #region Methods
        protected override void CreateChildControls()
        {
            base.CreateChildControls();
            TextArea textArea = new TextArea();
            textArea.FieldName = FieldName;
            textArea.Value = Value;
            Controls.Add(textArea);
            SetLabelForControlId(textArea.ClientID);
        }
        #endregion
    }
}
